﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>合同书编辑</title>
    <input type="hidden" id="childDiv" class="thickbox" />
    <script type="text/javascript" src="${res}/js/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
    <script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
    <script type="text/javascript" src="${res}/js/project/irisContract.js"></script>
    <script type="text/javascript" src="${res_app}/js/app/proposal/irisPrpPrepare.js"></script>
    <script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>
    <script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>

    <script type="text/javascript" src="${res}/js/public.js"></script>

    <script type="text/javascript" src="${res}/js/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
    <script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
    <script type="text/javascript" src="${res}/js/keyword/keywordtips.js"></script>
    <script type="text/javascript" src="${res_app}/js/app/proposal/irisPrpPrepare.js"></script>


    <script type="text/javascript">
        var prcWin = new progressWin("${res}");//初始化遮罩层
        /**
         * 页面初始化方法 所有的都定义在里面
         */
        $(function() {
            $("#wbox1,#wbox2").click(function() {
                check("check");
            });
            //initControl();
            //refreshPdfNotes("${pdfStatus}", "${pdfFileCode}");
            /* fileInit("prpContent_upload","DOC,DOCX,WPS,PDF"); */

            /* $("#prjInfo_totalAmt").val(formatVal($("#prjInfo_totalAmt").text()));
            $("#totalAmt").val(formatVal($("#totalAmt").val())); */
            $("table").addClass("table01");
            $("table.t_css").not("[id='finances']").not("[id='checkbox_table_']").not(
                "[id='budgetsMsg2']").each(function() {
                $(this).find("tr:even").addClass("li_1");
                $(this).find("tr:odd").addClass("li_2");
            });
            $('div').find("[id^='checkbox_dyn_']").find("tr").removeClass("li_1").removeClass("li_2");
            $('div').find("[id^='checkbox_dyn_']").find("td").css("border", '0px solid');
            setXmlStr("xml_str");//将计划书xml中的相关大节点设置到对应的隐藏域
        });

        $(document)
            .ready(
                function() {
                    fileInit("feaReport_upload", "PDF");
                    fileInit("prpContent_upload", "PDF", null,
                        "{'PDF':'51200'}");

                    //fileInitAttach("attachAdd", "JPG,PDF", null, 20, "{'JPG':'3072','PDF':'3072'}");
                    $("#prpContent_upload").find(".file").hide();//隐藏文本框
                });

        /**
         * 填报日期默认为当前日期
         */
        $(document).ready(function() {
            var nowDate = '${sercverSysDate1}';
            if ($("#edit_date").val() == "") {
                $("#edit_date").val(nowDate);
            }
            initControl();

        });

        function checkTotalVal(prefix,countSuffix,totalSuffix,title){
            if(title!=null)
                title = title + '-->';
            else
                title = "";
            var countSuffixs = countSuffix.split(",");
            var total = $("#" + prefix + totalSuffix);
            var totalVal = parseFloat(total.val());
            var countVal=0;
            if($.isNumeric(totalVal)){
                var totalLable = title+total.attr("label");
                for ( var int = 0; int < countSuffixs.length; int++) {
                    var count = $("#" + prefix + countSuffixs[int]);
                    var c1 = countVal;
                    var countVal =c1 + parseFloat(count.val());
                    if(int==(countSuffixs.length-1)){
                        if($.isNumeric(countVal)){
                            if((countVal*100)>(totalVal*100)){
                                irisValaddMsg(totalLable+" 必须大于等于 "+title+"：其中：省财政拨款+其中：市（县）财政拨款");
                            }
                        }}
                }
            }
        }



        /**
         * 填写检查
         */
        function check(type) {
            // validate($("#fragment-tab1"),"拟解决关键问题、研究内容及预期标志性成果");
            validate($("#orgFinanceInfo"),"单位基本情况");
            validate($("#orgFinanceInfos"),"单位基本情况-->单位财务状况");
            validate($("#orgKnowledgeInfo"),"单位基本情况-->知识产权情况");

            validate($("#basic_tab"),"项目基本情况");
            validateByTabRow($("#inland"), "项目基本情况-->合作单位信息", 0);
            validate($("#tblMileStones0"),"项目基本情况");
            validateByTabRow($("#ktfj"), "项目基本情况-->课题分解", 1);
            reformatRequestAmt();

            scrwszw();
            validateByTabRow($("#compareWork"), "牵头单位和合作单位分工", 1);
            validate($("#tblresume"),"牵头单位和合作单位分工");

            validateByTabRow($("#zh_persons"), "项目人员-->项目人员情况", 1);
            validate($("#tblresume02"),"项目人员");
            validate($("#tbl"),"经费预算");
            jehj();
            reformatRequestAmt2();
            validateByTabRow($("#tblMileStones"), "项目进度计划", 1);

            validate($("#tblMileStones1"),"承担单位及合作单位情况");
            validate($("#tblMileStones2"),"承担单位及合作单位情况");
            validate($("#tblMileStones3"),"承担单位及合作单位情况");
            if (!valResult()) {
                irisValShowMsg($("#wbox1"));
                return false;
            }
            if (type == "check") {
                showBox($("#wbox1"), "300px", "200px", "检查通过", "1:所有检查全部合格");
            }
            return true;
        }
        function psnname(){
            var psncname = $("#psncname").val();
            $("#psncnamehidden").val(psncname);
            var psnmobile = $("#psnmobile").val();
            $("#psnmobilehidden").val(psnmobile);

        }
        function scrwszw() {
            // var file_date = $("#file_date").html();
            //
            // file_date = file_date.replaceAll('','');
            // if(file_date == ""){
            //     irisValaddMsg("任务书正文-->必须上传，请确认");
            // }

            var file_code = $("#file_code").val();
            if(file_code == ""){
                irisValaddMsg("任务书正文-->必须上传，请确认");
            }
        }
        //判断资金预算的来源合计的年度相加是否等于预算金额
        function jehj() {
            var heji = 0.00;
            var total_investfrom_5 = parseFloat($("#total_investfrom_5").val());
            var total_invest_yea1_5 = parseFloat($("#total_invest_yea1_5").val());
            var total_invest_yea2_5 = parseFloat($("#total_invest_yea2_5").val());
            var total_invest_yea3_5 = parseFloat($("#total_invest_yea3_5").val());
            heji = total_invest_yea1_5 + total_invest_yea2_5 +total_invest_yea3_5;
            if(total_investfrom_5 != heji){
                irisValaddMsg("经费预算-->来源合计-->预算金额应等于来源合计-->三年预计合计，请确认");
            }
        }

        //自动求和
        function reformatRequestAmt(){
            var sczbk=0.00;//省财政拨款D
            var lyhj=0.00;//来源合计,C

            $("#ktfj").find("tr:gt(1)").each(function(){
                var zjf =  parseFloat($(this).find("[name$='zjf']").val());
                var zxzj = parseFloat($(this).find("[name$='zxzj']").val());

                if(zjf!='' && !isNaN(zjf)){
                    sczbk += zjf;
                }
                if(zxzj!='' && !isNaN(zxzj)){
                    lyhj += zxzj;
                }
            });
            sczbk = formatNumberAuto2(sczbk.toString(), 9, 4, 2);// 格式化金额
            lyhj = formatNumberAuto2(lyhj.toString(), 9, 4, 2);// 格式化金额


            var total_each_0 = $("#total_each_0").val();
            var total_investfrom_5 =$("#total_investfrom_5").val();
            if (lyhj != total_each_0){
                irisValaddMsg("项目基本情况-->课题分解-->其中省财政专项资金合计应等于经费预算-->资金预算-->省财政拨款-->预算金额");
            }
            if (sczbk != total_investfrom_5){
                irisValaddMsg("项目基本情况-->课题分解-->总经费合计应等于经费预算-->资金预算-->来源合计-->预算金额");
            }

            // var total_invest_8 = $("#total_invest_8").val();
            // var total_fund_8 = $("#total_fund_8").val();
            // if (total_invest_8 != total_investfrom_5){
            //     irisValaddMsg("经费预算-->资金预算-->来源合计-->预算金额应等于经费预算-->资金预算-->支出合计-->预算金额");
            // }
            // if (total_fund_8 != total_each_0){
            //     irisValaddMsg("经费预算-->资金预算-->省财政拨款-->预算金额应等于经费预算-->资金预算-->支出合计-->其中：省财政拨款");
            // }


        }
        //自动求和
        function reformatRequestAmt2(){
            var total_each_0 = $("#total_each_0").val();
            var total_investfrom_5 =$("#total_investfrom_5").val();
            var total_invest_8 = $("#total_invest_8").val();
            var total_fund_8 = $("#total_fund_8").val();
            if (total_invest_8 != total_investfrom_5){
                irisValaddMsg("经费预算-->资金预算-->来源合计-->预算金额应等于经费预算-->资金预算-->支出合计-->预算金额");
            }
            if (total_fund_8 != total_each_0){
                irisValaddMsg("经费预算-->资金预算-->省财政拨款-->预算金额应等于经费预算-->资金预算-->支出合计-->其中：省财政拨款");
            }
        }



        //制保留2位小数，如：2，会在2后面补上00.即2.00
        function toDecimal2(x) {
            var f = parseFloat(x);
            if (isNaN(f)) {
                return false;
            }
            var f = Math.round(x * 100) / 100;
            var s = f.toString();
            var rs = s.indexOf('.');
            if (rs < 0) {
                rs = s.length;
                s += '.';
            }
            while (s.length <= rs + 2) {
                s += '0';
            }
            return s;
        }


        /*经费检验  */
        //经费验证吧
        function check_gold(provinceMoneyId,indirectMoneyId,directMoneyId,equipmentMoneyId){

            var get_money = parseFloat($("#"+provinceMoneyId.id+"").val());

            var indirect_money = parseFloat($("#"+indirectMoneyId.id+"").val());

            var direct_money = parseFloat($("#"+directMoneyId.id+"").val());

            var equipment_money =  parseFloat($("#"+equipmentMoneyId.id+"").val());

            var left_money = parseFloat(direct_money-equipment_money);

            if(get_money<100){
                if(indirect_money>left_money*0.3){
                    irisValaddMsg("经费情况-->资金概算-->省财政拨款-->概算金额小于100万元时，资金支出概算-->其中：省财政拨款间接费用不能超过直接费用减去购置设备费后的30%");
                }
            }
            if(get_money<300 && get_money>=100){
                if(indirect_money>left_money*0.25){
                    irisValaddMsg("经费情况-->资金概算-->省财政拨款-->概算金额小于300万元并且大于100万元(包含100万元)时，其中：省财政拨款间接费用不能超过直接费用减去购置设备费后的25%");
                }
            }
            if(get_money<500 && get_money>=300){
                if(indirect_money>left_money*0.2){
                    irisValaddMsg("经费情况-->资金概算-->省财政拨款-->概算金额小于500万元并且大于300万元(包含300万元)时，其中：省财政拨款间接费用不能超过直接费用减去购置设备费后的20%");
                }
            }
            if(get_money>=500){
                if(indirect_money>left_money*0.15){
                    irisValaddMsg("经费情况-->资金概算-->省财政拨款-->概算金额大于500万元(包含500万元)时，其中：省财政拨款间接费用不能超过直接费用减去购置设备费后的15%");
                }
            }

        }
    </script>
</head>
<body>
<c:set var="xmlstr" value="${xmlData}" scope="request" />
<x:parse var="xmlData" xml="${xmlstr}" scope="request" />
<input type="hidden" name="proposal/manage_category"
       value="<x:out select="$xmlData/data/proposal/manage_category" />" />
<input type="hidden" name="proposal/sub_grant_name"
       value="<x:out select="$xmlData/data/proposal/sub_grant_name" />" />
<input type="hidden" name="proposal/grant_name" value="<x:out select="$xmlData/data/proposal/grant_name" />" />
<input type="hidden" name="proposal/grant_code"
       value="<x:out select="$xmlData/data/proposal/grant_code" />" />
<input type="hidden" name="proposal/psn_code"
       value="<x:out select="$xmlData/data/proposal/psn_code" />" />
<input type="hidden" id="grant_no" name="proposal/grant_no"
       value="<x:out select="$xmlData/data/proposal/grant_no" />" />
<input type="hidden" name="proposal/sub_grant_code"
       value="<x:out select="$xmlData/data/proposal/sub_grant_code" />" />
<input name="proposal/register_area_code" type="hidden"
       value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_value" />" />
<input name="proposal/register_area_name" type="hidden"
       value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_name" />" />
<input type="hidden" id="sub_grant_no" name="proposal/sub_grant_no"
       value="<x:out select="$xmlData/data/proposal/sub_grant_no" />" />
<input type="hidden" name="proposal/help_grant_code"
       value="<x:out select="$xmlData/data/proposal/help_grant_code" />" />
<input type="hidden" id="help_grant_no" name="proposal/help_grant_no"
       value="<x:out select="$xmlData/data/proposal/help_grant_no" />" />
<c:set var="formCode">
    <x:out select="$xmlData/data/proposal/form_code" />
</c:set>
<c:set var="nature_value">
    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />
</c:set>
<c:if test="${empty formCode}">
    <c:set var="formCode" value="${param.formCode}"></c:set>
</c:if>
<input type="hidden" name="proposal/form_code" value="${formCode}" />
<input type="hidden" name="proposal/request_amt" id="request_amt"
       value="<x:out select="$xmlData/data/proposal/request_amt"/>">
<input type="hidden" name="proposal/year" value="${year}" />

<input type="hidden" name="proposal/fzr_psnname"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /> " />
<input type="hidden" name="proposal/org_fzr_email"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /> " />
<input type="hidden" name="proposal/org_fzr_mobil"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /> " />
<input type="hidden" name="proposal/org_fzr_phone"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /> " />
<input type="hidden" name="proposal/org_lxr_name"
       value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_name" /> " />
<input type="hidden" name="proposal/org_lxr_eamil"
       value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email" /> " />
<input type="hidden" name="proposal/org_lxr_mobile"
       value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_mobile" /> " />
<input type="hidden" name="proposal/org_lxr_tel"
       value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel" /> " />
<input type="hidden" name="proposal/project_submit_date" id="submit_date" />
<input type="hidden" name="organizations/organization/nature_value"
       value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />">

<input type="hidden" name="organization/whether_is_gaoxin_value"
       value="<x:out select="$xmlData/data/organization/whether_is_gaoxin_value" />" />
<input type="hidden" name="organization/whether_industrial_base_value"
       value="<x:out select="$xmlData/data/organization/whether_industrial_base_value" />" />
<input type="hidden" name="organization/whether_is_province_value"
       value="<x:out select="$xmlData/data/organization/whether_is_province_value" />" />
<%-- <input type="hidden" name="proposal/contact_psn_tel"
    value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel"/>" /> --%>
<input type="hidden" name="proposal/contact_psn_email"
       value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email"/>" />

<input type="hidden" name="zh_parsen/fzr_name"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>" />
<input type="hidden" name="zh_parsen/fzr_mobile"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>" />
<input type="hidden" name="zh_parsen/fzr_tel"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>" />
<input type="hidden" name="zh_parsen/fzr_email"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>" />
<input type="hidden" id="hzdw" name="proposal/hzdw"
       value="<x:out select="$xmlData/data/proposal/hzdw"/>" />

<input type="hidden" name="zh_persons/zh_person/basic_info/zh_name"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>">
<input type="hidden" name="zh_persons/zh_person/contact/mobile"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>">


<input type="hidden" name="proposal/recomend_org_name"
       value="<x:out select="$xmlData/data/proposal/recomend_org_name"/>" />
<input type="hidden" name="proposal/recomend_org_value"
       value="<x:out select="$xmlData/data/proposal/recomend_org_value"/>" />

<input type="hidden" name="contract/sign/recommend/fzr_psn_name"
       value="<x:out select="$xmlData/data/proposal/fzr_psnname"/>" />





<input type="hidden" id="org_name" name="organizations/organization/org_name"
       value="<x:out select="$xmlData/data/organizations/organization/org_name"/>" />
<!-- 单位名称 -->
<input type="hidden" name="organizations/organization[1]@submit_org" value="1">
<input type="hidden" id="org_name" name="organizations/organization[1]/org_name"
       value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name"/>" />
<!-- 单位地址 -->
<input type="hidden" id="org_name" name="organizations/organization[1]/address"
       value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address"/>" />

<input type="hidden" name="organizations/organization/address"
       value="<x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/address" />" />
<input type="hidden" name="contract/organization/start_date"
       value="<x:out select="$xmlData/data/proposal/start_date" />" />
<input type="hidden" name="contract/organization/end_date"
       value="<x:out select="$xmlData/data/proposal/end_date" />" />


<input type="hidden" id="award_amt" name="proposal/award_amt" value="<x:out select="$xmlData/data/proposal/award_amt" />" />
<input type="hidden" id="current_year_amt" name="proposal/current_year_amt"
       value="<x:out select="$xmlData/data/proposal/current_year_amt" />" />
<input type="hidden" id="second_year_amt" name="proposal/second_year_amt"
       value="<x:out select="$xmlData/data/proposal/second_year_amt" />" />
<input type="hidden" id="third_year_amt" name="proposal/third_year_amt"
       value="<x:out select="$xmlData/data/proposal/third_year_amt" />" />

<input type="hidden" name="contract/organization/prp_no"
       value="<x:out select="$xmlData/data/proposal/prp_no" />" />

<input type="hidden" name="contract/basic_info/zh_name" id="contract_names" class="required"
       maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/zh_name" />"
       label="姓名">
<input type="hidden" name="contract/basic_info/gender_value" id="contract_gender_values"
       class="required" maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/gender_value" />"
       label="性别">
<input type="hidden" name="contract/basic_info/birthday" id="contract_birthdays"
       class="required" maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/birthday" />"
       label="出身年月">
<input type="hidden" name="contract/basic_info/educate_name" id="contract_educate_names"
       class="required" maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/educate_name" />"
       label="学历">
<input type="hidden" name="contract/basic_info/position" id="contract_positions"
       class="required" maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/position" />"
       label="职务">
<input type="hidden" name="contract/basic_info/prof_title_name" id="contract_prof_title_names"
       class="required" maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/prof_title_name" />"
       label="职称">
<input type="hidden" name="contract/basic_info/major_work" id="contract_major_works"
       class="required" maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/contact/major_work" />"
       label="从事专业">
<input type="hidden" name="contract/basic_info/mobile" id="contract_mobiles" class="required"
       maxlength="100"
       value="<x:out select="$xmlData/data/zh_persons/zh_person['00']/contact/mobile" />"
       label="手机">

<!-- 需要拆分字段 -->
<!--  <input type="hidden" name="zh_persons/zh_person[1]@submit_psn" value="1" /> -->
<!-- 项目负责人 -->
<input type="hidden" name="project/fzr_basic_info/zh_name"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>" />
<!-- 项目负责人联系电话 -->
<input type="hidden" name="project/fzr_basic_info/tel_work"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />" />
<input type="hidden" name="project/fzr_basic_info/mobile"
       value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>" />
<%-- <!-- 开户名称 -->
<input type="hidden" name="organizations/organization[1]/bank_orgname"
    value="<x:out select="$xmlData/data/org_basic_info/bank_orgname"/>" />
<input type="hidden" name="organizations/organization[1]/bank_name"
    value="<x:out select="$xmlData/data/org_basic_info/bank_name"/>" />
<input type="hidden" name="organizations/organization[1]/bank_account"
    value="<x:out select="$xmlData/data/org_basic_info/bank_account"/>" /> --%>

<%-- <c:set var="gname">
    <x:forEach select="$xmlData/data/product/org" var="org">
        <x:out select="$org/gname" />
    </x:forEach>
</c:set>
<input type="hidden" name="org_hz/org_hz_name" value="${gname}">  --%>

<form action="" method="post" id="mainForm">
    <input type="hidden" id="ctrCode" name="ctrCode" value="${ctrCode}">
    <input type="hidden" id="xmlData" name="xmlData">

    <!-- 打印PDF关键参数 -->
    <input type="hidden" id="type" name="type" value="contract">
    <input type="hidden" id="keyCode" name="keyCode"
           value="<iris:des3 code="${ctrCode}"></iris:des3>">
    <input type="hidden" id="pdfCode" name="pdfCode"
           value="<iris:des3 code="${pdfCode}"></iris:des3>">
</form>

<cpt:helpTips key="ctredit" id="ctrEditTips"></cpt:helpTips>
<div class="clear_h15"></div>

<div class="t_bar" style="display: none"> 项目简要信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="tblMileStonesx" style="display: none">
    <tr class="li_1">
        <td align="right">项目名称：</td>
        <td>
            <input type="hidden" id="test1" value />
            <c:out value="${prjInfo.zhTitle}" />
            <input type="hidden" name="proposal/zh_title" value="${prjInfo.zhTitle}" />

        </td>
        <td align="right">申报单位：</td>
        <td colspan="1">
            <c:out value="${prjInfo.orgName}" />
            <input type="hidden" name="proposal/orgName" value="${prjInfo.orgName}" />

        </td>
    </tr>
    <tr class="li_2">
        <td width="100" align="right">项目类别：</td>
        <td width="300">
            <span name="proposal/grant_name"><c:out value="${prjInfo.grantName}" /></span>
            <input type="hidden" name="proposal/grant_name" value="${prjInfo.grantName}" />

        </td>
        <td width="100" align="right">批准金额：</td>
        <td width="150">
            <span id="prjInfo_totalAmt"><c:out value="${prjInfo.totalAmt}" /></span>万元
            <input name="proposal/totalAmt" type="hidden" id="totalAmt"
                   value="${prjInfo.totalAmt}" label="批准金额" />
        </td>
        <%--<tr>
	        <td align="right">项目开始时间：</td>
			<td>
				<span name="contract/start_date">2019-07-01</span>
				<span style="display: none" name="proposal/start_date">2019-07-01</span>
			</td>
			<td align="right">项目结束时间：</td>
			<td>
				<span name="contract/end_date">2022-06-30</span>
				<span style="display: none" name="proposal/end_date">2022-06-30</span>
			</td>
        </tr>--%>
        <%--<tr>
            <td align="right">项目开始时间：</td>
            <td>
                <span name="contract/start_date"><x:out select="$xmlData/data/proposal/start_date"/></span>
                <input type="hidden" name="proposal/start_date" value="<x:out select="$xmlData/data/proposal/start_date"/>"/>
            </td>
            <td align="right">项目结束时间：</td>
            <td>
                <span name="contract/end_date"><x:out select="$xmlData/data/proposal/end_date"/></span>
                <input type="hidden" name="proposal/end_date" value="<x:out select="$xmlData/data/proposal/end_date"/>"/>
            </td>
        </tr>--%>
    <tr>
        <td align="right"><span class="color_red">*</span>联系人姓名：</td>
        <td>
            <%-- <input type="text" id="psncname" name="proposal/contact_psn_cname" maxlength="30" onchange="psnname()" class="required" label="联系人姓名"
                 value="<x:out select="$xmlData/data/proposal/contact_psn_cname"/>" />--%>
            <input type="text" id="psncname" name="contract/sign/recommend/contact_psn_name" maxlength="30" onchange="psnname()" class="required" label="联系人姓名"
                   value="<x:out select="$xmlData/data/contract/sign/recommend/contact_psn_name"/>" />
            <input type="hidden" id="psncnamehidden" name="contract/sign/recommend/contact_psn_name" value="<x:out select="$xmlData/data/contract/sign/recommend/contact_psn_name"/>"/>
            <!-- <input type="hidden" name="proposal/contact_psn_tel" value="$xmlData/data/proposal/contact_psn_tel"/> -->
        </td>
        <td align="right"><span class="color_red">*</span>联系电话：</td>
        <td>
            <%-- <input type="text" id="psnmobile" name="proposal/contact_psn_mobile" onchange="psnname()" class="required mobile" label="联系电话"
            maxlength="11"  onfocus="InitInput.setNumber(this,11,0,0)" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile"/>" />--%>
            <input type="text" id="psnmobile" name="contract/sign/recommend/contact_psn_mobile" onchange="psnname()" class="required input_text" label="联系电话"
                   maxlength="50"   value="<x:out select="$xmlData/data/contract/sign/recommend/contact_psn_mobile"/>" />
            <input type="hidden" id="psnmobilehidden" name="contract/sign/recommend/contact_psn_mobile" value="<x:out select="$xmlData/data/contract/sign/recommend/contact_psn_mobile"/>"/>

        </td>
    </tr>
</table>

<div class="clear_h15"></div>
<div class="word_box" id="mainDiv">
    <div class="bar_btn">
            <span class="left"> <input name="Submit" type="button" class="button_01"
                                       value="保存" onclick="saveCtrAction()" />&nbsp; <input
                    name="Submit" type="button" class="button_01" value="下载PDF合同书"
                    onclick="genCtrPdfAction()" />&nbsp; <input
                    name="Submit" type="button" class="button_01" value="提交"
                    onclick="submitCtrAction()" />&nbsp; <input name="Submit" type="button"
                                                                class="button_01" value="返回" onclick="backToCtrList()" />
            </span> <span class="right"> <input title="填写检查" class="btn_inspect" type="button" id="wbox1" />
            </span>
    </div>
    <div class="bar_b">
        <span id="pdf_notes"></span> <span class="right">版本号：<span
            name="contract/ctr_version" id="ctrVersion"><x:out
            select="$xmlData/data/contract/ctr_version" /></span></span>
    </div>

    <div class="word_title">
        <c:set var="statyear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
        ${prjInfo.grantName}-项目任务合同书（${statyear }年 ）<br />
        <input type="hidden" name="contract/prj_no"
               value="${prjInfo.prjNo}" />
        <input type="hidden" name="contract/organization/prp_no"
               value="${prjInfo.prjNo}" />
        <input type="hidden" name="contract/print_no"
               value="${prjInfo.printNo}" />
        <input type="hidden" name="contract/print_no_bu"
               value="<x:out select="$xmlData/data/contract/print_no_bu" />" />
        <input type="hidden" name="contract/print_type"
               value="<x:out select="$xmlData/data/contract/print_type" />" />
        <input type="hidden" name="proposal/stat_year" id="stat_year"
               value="<x:out select="$xmlData/data/proposal/stat_year" />" />
        <input type="hidden" name="proposal/flag_shi_zhi" value="${prjInfo.flag_shi_zhi }"
               id="flag_shi_zhi" />
        <input type="hidden" id="proposal_xml" name="proposal" label="xml" />
        <input type="hidden" id="organizations_xml" name="organizations" label="xml" />
        <input type="hidden" id="zh_persons_xml" name="zh_persons" label="xml" />
        <input type="hidden" id="en_persons_xml" name="en_persons" label="xml" />
        <input type="hidden" id="prp_content_xml" name="prp_content" label="xml" />
        <input type="hidden" value="<x:out select="$xmlData/data/proposal/level_no" />" id="level_no" name="proposal/level_no">
        <textarea id="xml_str" style="display: none">${xmlstr}</textarea>
    </div>
    <div id="tabnav">
        <ul>
            <li class="down" id="tab1" onclick="changeTab(this.id)">
                <a href="###"><span>单位基本情况</span></a>
            </li>

            <li  id="tab2" onclick="changeTab(this.id)">
                <a href="###"><span>项目基本情况</span></a>
            </li>
            <li id="tab3" onclick="changeTab(this.id)" >
                <a href="###"><span>任务书正文</span></a>
            </li>
            <li id="tab4" onclick="changeTab(this.id)" >
                <a href="###"><span>牵头单位和合作单位分工</span></a>
            </li>
            <li id="tab10" onclick="changeTab(this.id)" >
                <a href="###"><span>项目人员</span></a>
            </li>
            <li id="tab5" onclick="changeTab(this.id)">
                <a href="###"><span>经费预算</span></a>
            </li>
            <li id="tab6" onclick="changeTab(this.id)" >
                <a href="###"><span>项目进度计划</span></a>
            </li>
            <li id="tab7" onclick="changeTab(this.id)" >
                <a href="###"><span>项目绩效目标</span></a>
            </li>

            <!-- <li id="tab8" onclick="changeTab(this.id)" >
                <a href="###"><span>可行性报告</span></a>
            </li>	 -->

        </ul>
    </div>
    <div id="tabnav">
        <ul>
            <li id="tab8" onclick="changeTab(this.id)" >
                <a href="###"><span>承担单位及合作单位情况</span></a>
            </li>
        </ul>
    </div>
    <!-- 单位基本情况-->
    <div class="tab_box" id="fragment-tab1">
        <jsp:include page="../org/prporg_baseinfo_enterprise_new_2024_3_0112.jsp">
            <jsp:param value="1、依托单位基本信息" name="title" />
            <jsp:param value="2、依托单位人员情况" name="title2" />
            <jsp:param value="5、知识产权情况" name="title6" />
            <jsp:param value="3、依托平台情况" name="title3" />
            <jsp:param value="4、单位财务状况" name="title4" />
            <jsp:param value="${xmlstr}" name="xmlstr" />
            <jsp:param value="${statYear}" name="statyear" />
            <jsp:param value="${year}" name="curryear" />
        </jsp:include>
    </div>
    <!-- 项目基本情况-->
    <div class="tab_box" id="fragment-tab2" style="display: none">
        <jsp:include page="../info/prpinfoEdit_msgg_2024_0112.jsp">
            <jsp:param value="${statYear}" name="statYear" />
            <jsp:param value="${pro_start_date}" name="pro_start_date" />
            <jsp:param value="${pro_end_date}" name="pro_end_date" />
            <jsp:param value="${xmlstr}" name="xmlstr" />
        </jsp:include>
    </div>
    <!-- 任务书正文-->
    <div class="tab_box" id="fragment-tab3" style="display: none">
<%--        <jsp:include page="../goal/prpgoaledit_msgg_xmgs_2023_1205.jsp">--%>
        <jsp:include page="../goal/prpgoaledit_msgg_xmgs_2024_0112.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
            <jsp:param value="任务书正文" name="title" />
        </jsp:include>
    </div>
<%--    牵头单位和合作单位分工--%>
    <div class="tab_box" id="fragment-tab4" style="display: none">
        <jsp:include page="../goal/prpgoaledit_msgg_xmgs_2024_0112_02.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
            <jsp:param value="牵头单位和合作单位分工" name="title" />
        </jsp:include>
    </div>
    <!--人员信息-->
    <div class="tab_box" id="fragment-tab10" style="display: none">
        <jsp:include page="../psn/prpzhpsn_msgg_2024_0112.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
        </jsp:include>
    </div>

    <!--经费预算-->
    <div class="tab_box" id="fragment-tab5" style="display: none">
        <jsp:include page="../fund/prpfundedit_csjkjcx_gxly_2024_0112.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
            <jsp:param value="${statYear}" name="statYear" />
        </jsp:include>
    </div>
    <!-- 项目进度计划-->
    <div class="tab_box" id="fragment-tab6" style="display: none">
        <jsp:include page="../milestone/prpmilestoneedit_csjkjcx_2024_0112.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
        </jsp:include>
    </div>
    <!--项目绩效-->
    <div class="tab_box" id="fragment-tab7" style="display: none">
        <jsp:include page="../performance/prpperformanceedit_public_gxly_2024_0112.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
            <jsp:param value="${statYear}" name="statYear" />
        </jsp:include>
    </div>
    <!--承担单位及合作单位情况-->
    <div class="tab_box" id="fragment-tab8" style="display: none">
        <jsp:include page="../goal/prpgoaledit_msgg_cdjhzdw2024_0112.jsp">
            <jsp:param value="${xmlstr}" name="xmlstr" />
        </jsp:include>
    </div>


    <div class="bar_btn02">
            <span class="left"> <input name="Submit" type="button" class="button_01"
                                       value="保存" onclick="saveCtrAction()" />&nbsp; <input
                    name="Submit" type="button" class="button_01" value="下载PDF合同书"
                    onclick="genCtrPdfAction()" />&nbsp; <input
                    name="Submit" type="button" class="button_01" value="提交"
                    onclick="submitCtrAction()" />&nbsp; <input name="Submit" type="button"
                                                                class="button_01" value="返回" onclick="backToCtrList()" />
            </span> <span class="right"> <input title="填写检查" class="btn_inspect" type="button" id="wbox2" />
            </span>
    </div>
</div>
<div class="clear_h15"></div>
</body>
</html>